package com.youmu.maven.emall.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;

@Service
@Aspect
public class PageDaoAspect {

	@Around("execution(* com.youmu.maven.emall.dao.*.*ByPage(*))")
	public Object aroundDao(ProceedingJoinPoint pjp) throws Throwable {
		PageHelper.startPage(1, 1);

		return pjp.proceed();
	}

}
